package com.service;

import java.util.List;
import java.util.Map;

public interface CommonService {
    List<Map<String, Object>> pieSum(Map<String, Object> params);

    List<Map<String, Object>> pieCount(Map<String, Object> params);

    List<Map<String, Object>> barSumOne(Map<String, Object> params);

    List<Map<String, Object>> barCountOne(Map<String, Object> params);

    List<Map<String, Object>> barSumTwo(Map<String, Object> params);

    List<Map<String, Object>> barCountTwo(Map<String, Object> params);

    /**
     * tableName 查询表
     * condition1 条件1
     * condition1Value 条件1值
     * average 计算平均评分
     */
    Map<String, Object> queryScore(Map<String, Object> params);

    /**
     * 新的级联字典表的  分组求和统计
     *
     * @param params
     * @return
     */
    List<Map<String, Object>> newSelectGroupSum(Map<String, Object> params);

    /**
     * 新的级联字典表的  分组求和统计
     *
     * @param params
     * @return
     */
    List<Map<String, Object>> newSelectGroupCount(Map<String, Object> params);

    /**
     * 柱状图求和
     *
     * @param params
     * @return
     */
    List<Map<String, Object>> barSum(Map<String, Object> params);

    /**
     * 柱状图统计
     *
     * @param params
     * @return
     */
    List<Map<String, Object>> barCount(Map<String, Object> params);

}
